import {
  BatchDeleteEventParam,
  DeleteEventParam,
  GetEventListParam,
  GetEventListRsp,
} from './model/eventModel'

import { defHttp } from '/@/utils/http/axios'

export const getEventList = (params: GetEventListParam) =>
  defHttp.post<GetEventListRsp>({ url: '/event/list', params })

export const deleteEvent = (params: DeleteEventParam) =>
  defHttp.post<void>({ url: '/event/delete', params })

export const batchDeleteEvent = (params: BatchDeleteEventParam) =>
  defHttp.post<void>({ url: '/event/batch_delete', params })
